package com.carl.zeus.common.base;

import com.alibaba.fastjson.serializer.SerializerFeature;
import com.carl.zeus.model.system.SysUser;
import org.apache.shiro.SecurityUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Controller公共组件
 * 
 * @author zcm
 */
public abstract class BaseController {

	protected Logger logger = LoggerFactory.getLogger(getClass());
	
	protected SysUser getUser() {
		return (SysUser) SecurityUtils.getSubject().getPrincipal();
	}

	protected Long getUserId() {
		return getUser().getId();
	}

//	protected Long getDeptId() {
//		return getUser().getDeptId();
//	}



}
